package cn.zyq.ykb.controller.h5.advert;


import cn.zyq.ykb.system.common.BaseController;
import cn.zyq.ykb.beans.advert.Advert;
import cn.zyq.ykb.service.advert.AdvertService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


/**
 * 悦推客广告Controller
 *
 * @author SystemAuth
 * @date 2024-09-28
 */

@RestController(value = "H5AdvertController")
@RequestMapping("/api/advert")
@Api(tags = "悦推客广告接口")
public class AdvertController extends BaseController {

    @Autowired
    private AdvertService advertService;

    /**
     * 查询悦推客广告列表
     */
    @ApiOperation(value = "列表", response = Advert.class)
    @GetMapping("/list")
    public Object list() {
        return this.advertService.getList();
    }

}
